<div class="body">
  <p>
    First-time poster <a href='https://<%= ActionMailer::Base.default_url_options[:host] %>/profile/<%= @comment.author.name %>'><%= @comment.author.name %></a>
    has submitted their first research comment!
  </p>

  <p>
    Help to approve it or mark it as spam:
    https://<%= ActionMailer::Base.default_url_options[:host] %><%= @comment.node.path %>
  </p>

  <hr />
    <b>Comment body:</b>
        <div style="color: grey; padding: 10px 20px;" >
          <%= @comment.comment %>
        </div>

  <p>
    <a href="https://<%= ActionMailer::Base.default_url_options[:host] %>/admin/publish_comment/<%= @comment.id %>">Approve</a>
    or
    <a href="https://<%= ActionMailer::Base.default_url_options[:host] %>/admin/spam_comments/<%= @comment.id %>">Spam</a>
  </p>

  <hr />

  <p>It has the following tags: </p>
  <ul>
    <% @comment.tags.each do |tag| %>
    <li><%= tag.name %></li>
    <% end %>
  </ul>

  <table border="1">
    <thead>User Info</thead>
    <tbody>
      <tr>
        <th>ID</th>
        <td><%= @user.id %></td>
      </tr>
      <tr>
        <th>Username</th>
        <td><%= @user.username %></td>
      </tr>
      <tr>
        <th>Email</th>
        <td><%= @user.email %></td>
      </tr>
    </tbody>
  </table>
</div>

<div style="color:#aaa;">

  <p>You received this email because you are <a href="https://<%= ActionMailer::Base.default_url_options[:host] %>/wiki/moderation">a Public Lab community moderator</a></p>

  <p>To discuss spam/abuse, forward this to <a href="mailto:moderators@<%= ActionMailer::Base.default_url_options[:host] %>">moderators@<%= ActionMailer::Base.default_url_options[:host] %></a></p>

  <%= @footer %>

</div>
